Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove custom Accordion close button element #229

Merged
merged 4 commits into from
Jul 15, 2021
Merged

Conversation

aduth
Copy link
Member

@aduth aduth commented Jul 14, 2021

Why:

Maintenance:

  • Limit divergence from USWDS, facilitating ongoing maintenance and reducing potential confusion introduced by enhancements exclusive to the login.gov Design System.

Accessibility:

  • The button's behavior is duplicative with the toggle, where the additional tab stop may be excessive as repeated content.
  • Collapsing an accordion by the close button causes a focus loss (SC 2.4.7, SC 2.4.3)
  • The relationship between the button and controlled content is not clearly indicated (e.g. aria-controls)
  • Current button examples inherit semantics of a form submission button by absence of explicit type attribute, despite the fact that the button is not intended for form submission.

**Why**:

Maintenance:
- Limit divergence from USWDS, facilitating ongoing maintenance and reducing potential confusion introduced by enhancements exclusive to the login.gov Design System.

Accessibility:
- The button's behavior is duplicative with the toggle, where the additional tab stop may be excessive as repeated content.
- Collapsing an accordion by the close button causes a focus loss ([SC 2.4.7](https://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-focus-visible.html), [SC 2.4.3](https://www.w3.org/WAI/WCAG21/Understanding/focus-order.html))
- The relationship between the button and controlled content is not clearly indicated (e.g. [`aria-controls`](https://www.w3.org/TR/wai-aria-1.1/#aria-controls))
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aduth aduth merged commit cf716ec into main Jul 15, 2021
@aduth aduth deleted the aduth-rm-accordion-close branch July 15, 2021 17:48
juliaelman pushed a commit that referenced this pull request Jul 16, 2021
* Remove custom Accordion close button element

**Why**:

Maintenance:
- Limit divergence from USWDS, facilitating ongoing maintenance and reducing potential confusion introduced by enhancements exclusive to the login.gov Design System.

Accessibility:
- The button's behavior is duplicative with the toggle, where the additional tab stop may be excessive as repeated content.
- Collapsing an accordion by the close button causes a focus loss ([SC 2.4.7](https://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-focus-visible.html), [SC 2.4.3](https://www.w3.org/WAI/WCAG21/Understanding/focus-order.html))
- The relationship between the button and controlled content is not clearly indicated (e.g. [`aria-controls`](https://www.w3.org/TR/wai-aria-1.1/#aria-controls))

* Remove unused variable $icon-size

* Restore border radius to accordion content bottom border

* Clarify removal of JavaScript exported member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants